package com.ibm.risk.irmp.common.auth.session;

import com.ibm.risk.irmp.common.auth.vo.LoginUser;

import java.util.HashMap;


public class UserSessionStoreMemImpl implements UserSessionStore {
    private HashMap<String, LoginUser> userStore = new HashMap<>();
    @Override
    public LoginUser getLoginUser(String token) {
        return userStore.get(token);
    }
    @Override
    public void setLoginUser(String token, LoginUser loginUser) {
        userStore.put(token, loginUser);
    }
}
